#ifndef UTRACKER_H
#define UTRACKER_H

#include <QObject>
#include "free-cube/aplugin.h"


class Pattern;
class UTracker : public QObject, public fc::APlugin
{
    Q_OBJECT
public:
    explicit UTracker(QObject *parent = 0);
    ~UTracker();
//for APlugin
    int n_mono_inputs(){return 0;}
    int n_mono_outputs(){return 0;}
    void set_buffer(fc::Buffer & buffer){}
    void set_data(fc::DataList & data){data_ = &data;}
    void process(size_t size);
    int delay(){return 0;}
    void set_master_handler(fc::AMasterHandler &handler){handler_ = &handler;}

signals:
    
public slots:
private:
    Pattern * pattern_;
    fc::DataList * data_;
    fc::AMasterHandler * handler_;
};

#endif // UTRACKER_H
